#ifndef GAME_H
#define GAME_H

#include "cardmanage.h"
#include "player.h"
#include "DataFlow.h"

class CGameProcess
{
public:
	int PlayerTurn;
	list<int>::iterator SelectItemTurn;
	CCardSet SelectItem;

	void Init(CCardManage *c, CPlayerManage *p)
	{
		Card = c;
		Player = p;
		PlayerTurn = 0;
		Player->AlivePlayer = Player->PlayerNumber;
		Card->PlayerAlloc(Player, Player->PlayerNumber);

	}
	void GetSelectItem()
	{
		SelectItemTurn = Player->LastPosition.begin();
	}
	void PlayerSelectItem()
	{
		if (SelectItemTurn == Player->LastPosition.begin())
			SelectItem = Card->GetNumberItems(Player->AlivePlayer);
	}
	void PlayerTakeAction();
	void PlayerAgreeOrNot();
	void PlayerTakeInCombat();
	void PlayerEdgeRegretCombat();
	void PlayerUnderdogRegretCombat();
	void PlayerChooseRobItem();
	void PlayerChooseStealItem();
	void PlayerChooseNavigation();
	void PlayerUseItem();

private:
	CCardManage *Card;
	CPlayerManage *Player;
};

#endif